package com.services;

import com.domain.User;
import com.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/5/22.
 */
@Service
public class ServiceImpl implements UserService {

    @Autowired
    UserDao userMapper;

    @Override
    public User find(int id) {

        return userMapper.findById(id) ;
    }

    @Override
    public void add(User user) {
        userMapper.add(user);

    }
}
